#include "../Common/LinkList.h"

int main(int argc, char const *argv[])
{
  /* code */
  LinkList ll;

  //       vpNode
  // 10 -> 11 -> 12 -> 13 -> 14 -> nullptr
  ll.addAtTail(10);
  ll.addAtTail(11);
  ll.addAtTail(12);
  ll.addAtTail(13);
  ll.addAtTail(14);
  
  Node *pNode = ll.head->next;

  Node *currH = ll.reverse(pNode);

  // vcurrH
  // 14 -> 13 -> 12 -> 11 -> nullptr
  Node *p = currH;
  while (p != nullptr) {
    cout << p->value << " ";
    p = p->next;
  }
  cout << endl;

  return 0;
}
